@include('admin.header')

<style type="text/css">
  .opartion {
    width: 350px;
  }

  .pagination {
    list-style: none;
    float: right;
  }

  .pagination li {
    float: left;
    padding-left: 5px;
    padding-right: 5px;
  }

  .input_search {
    margin-top: 10px;
  }
</style>

<div class="wrap">
  <div class="margin-bottom-20">
    <!-- <a class="btn btn-primary edit"><i class="fa fa-plus"></i> 添加</a> -->
    {{ csrf_field() }}
    <input id="change_url" value="" type="hidden"/>
    <form action="{{url('capital/water_log')}}" method="post">
        <div class="cl pd-5 bg-1 bk-gray mt-20">
         被冲正流水号：
       <input type="text" style="width: 200px;height: 35px;" name="refund_transfer_id" value=""/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        冲正流水号：
        <input type="text" style="width: 200px;height: 35px;" name="transfer_id" value=""/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span class="text-c">
            <button name="" id="search" class="btn btn-success user_search" type="
            submit"><i class="Hui-iconfont"></i> 搜索</button>
            </span>
            <span class="r">共有数据：<strong>{{$data->total()}}</strong> 条</span>
        </div>
    </form>
  </div>
  <form class="form-horizontal js-ajax-form" method="post" novalidate="novalidate">
    <table class="table table-hover table-bordered">
      <thead>
      <tr>
        <th>退款ID</th>
        <th>被冲正流水号</th>
        <th>冲正流水号</th>
        <th>操作员Id </th>
        <th>操作员名称</th>
        <th>操作员账号</th>
        <th>备注</th>
        <th>退款时间 </th>
        <th>操作</th>
      </tr>
      </thead>
      <tbody>
      @foreach($data as $val)
      <tr>
        <td>{{$val->refund_id}}</td>
        <td>{{$val->refund_transfer_id}}</td>
        <td>{{$val->transfer_id}}</td>
        <td>{{$val->op_node_id}}</td>
        <td>{{$val->nodename}}</td>
        <td>{{$val->nodecode}}</td>
        <td>{{$val->remark}}</td>
        <td>{{$val->create_time}}</td>
        <td>
           <!-- <span><a _id="{{$val->refund_transfer_id}}" class="cover_water">被冲正流水信息</a></span> | -->
           <span><a href="{{asset('capital/cover_water')}}?refund_transfer_id={{$val->refund_transfer_id}}">被冲正流水信息</a></span> |
           <span><a href="{{asset('capital/cover_water')}}?refund_transfer_id={{$val->transfer_id}}">冲正流水信息</a></span> 
         </td>
        

      
       
      </tr>
      @endforeach
      </tbody>
    </table>

    <!-- 分页 -->
    @if (!empty($data))
    <div class="page_list">
        {{$data->links()}}
    </div>
    @endif
  </form>
</div>

<script>
$(function(){
    //被冲正流水信息
    // $('.cover_water').click(function() {
    //   var refund_transfer_id = $(this).attr('_id') || 0;
    //   open_iframe_layer('/capital/cover_water?refund_transfer_id='+refund_transfer_id);
    // });

});
//详情
// $('.apply_action').click(function() {
//   var id = $(this).attr('_id');
//    if(confirm("确定要审核通过吗？")){
//       $.ajax({
//             type: 'GET',
//             url: '/system/apply_action?id='+id,
//             dataType: 'json',
//             success: function(data){
               
//             },
           
//          });
//    }
        
//    });


</script>